package 面向对象;

/**
 * @Author: WangYongGan
 * @Date: 2021/11/19 21:55
 * @Description:
 */
public class 多态 {
    public static void main(String[] args) {
        human human=new student();
        human.speck();

    }
}
class human{
    public void speck(){
        System.out.println("human");
    }
}
class student extends human{
    public void speck(){
        super.speck();
        System.out.println("student");
    }
}